| Server IP : 194.30.32.123 / Your IP : 216.73.216.89 Web Server : Apache System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ftpbegirale ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /expert/htwebs/www.begirale.com/public/wp-content/plugins/polylang/settings/ |
Upload File : |
<?php
/**
* Settings class for tools
*
* @since 1.8
*/
class PLL_Settings_Tools extends PLL_Settings_Module {
/**
* Constructor
*
* @since 1.8
*
* @param object $polylang polylang object
*/
public function __construct( &$polylang ) {
parent::__construct( $polylang, array(
'module' => 'tools',
'title' => __( 'Tools', 'polylang' ),
'description' => __( 'Decide whether to remove all data when deleting Polylang.', 'polylang' ),
) );
}
/**
* Displays the settings form
*
* @since 1.8
*/
protected function form() {
printf(
'<label for="uninstall"><input id="uninstall" name="uninstall" type="checkbox" value="1" %s /> %s</label>',
empty( $this->options['uninstall'] ) ? '' : 'checked="checked"',
esc_html__( 'Remove all Polylang data when using the "Delete" link on the plugins screen.', 'polylang' )
);
}
/**
* Sanitizes the settings before saving
*
* @since 1.8
*
* @param array $options
*/
protected function update( $options ) {
$newoptions['uninstall'] = isset( $options['uninstall'] ) ? 1 : 0;
return $newoptions; // Take care to return only validated options
}
}